package models

type UserInfoResp struct {
	WxOpenID       string `json:"wx_open_id" binding:"required"` //微信open_id
	Name           string `json:"name"`                          //姓名
	StudentID      string `json:"student_id" binding:"required"` //学号
	Phone          string `json:"phone"`                         //电话
	ClassId        string `json:"class_id"`                      //班级
	LeaveInfoCount string `json:"leave_info_count"`              //请假次数
	ClassName      string `json:"class_name"`                    //班级名称
	TeacherId      string `json:"teacher_id"`                    //老师Id
	TeacherName    string `json:"teacher_name"`                  //老师名字
	Grade          string `json:"grade"`                         //年级
	College        string `json:"college"`                       //学院
}
type UpdateInfoReq struct {
	WxOpenID  string `json:"wx_open_id" binding:"required"` //微信open_id
	Name      string `json:"name"`                          //姓名
	StudentID string `json:"student_id" binding:"required"` //学号
	Phone     string `json:"phone"`                         //电话
	ClassId   int    `json:"class_id"`                      //班级
	TeacherId int    `json:"teacher_id"`                    //老师Id
}
type UpdateInfoToTeacherReq struct {
	WxOpenID  string `json:"wx_open_id" binding:"required"` //微信open_id
	Name      string `json:"name"`                          //姓名
	StudentID string `json:"student_id" binding:"required"` //学号
	Phone     string `json:"phone"`                         //电话
	ClassId   string `json:"class_id"`                      //班级
	TeacherId string `json:"teacher_id"`                    //老师Id
}
type StudentDeleteReq struct {
	UserId string `json:"user_id" binding:"required"`
}
type SearchStudentByClassReq struct {
	PageInfo
	ClassID string
}
type SearchStudentByIdReq struct {
	StudentID string
}
type SearchStudentByOpenIdReq struct {
	OpenId string `json:"open_id"`
}

type SearchToClassReq struct {
	PageInfo
	ClassID string `json:"class_id"`
}

//------------
